<HTML>
<head>
<title>AngelScript: Reference: asIOutStream</title>
<LINK rel="stylesheet" type="text/css" href="style.css">
</head>

<body>

<p>
<a href="../index.html">index</a>
</p>

<h1>Reference: asIBinaryStream</h1>

<pre class=border>
class asIBinaryStream
{
public:
  void <a href="#read">Read</a>(void *ptr, asUINT size);
  void <a href="#write">Write</a>(const void *ptr, asUINT size);
};
</pre>

<a name=read></a>
<h2>Read</h2>

<pre class=border>
void Read(void *ptr, asUINT size);
</pre>

<h3>Description</h3>

<p>Read is used to read data from the stream.</p>

<h3>Parameters</h3>

<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td valign=top width=100><code>ptr</code>&nbsp;</td>
<td valign=top><p>Pointer to the memory location where the data should be put.</p></td>
</tr>
<tr>
<td valign=top width=100><code>size</code>&nbsp;</td>
<td valign=top><p>Size of the wanted data in bytes.</p></td>
</tr>
</table>



<a name=write></a>
<h2>Write</h2>

<pre class=border>
void Write(const void *ptr, asUINT size);
</pre>

<h3>Description</h3>

<p>Write is called to send data to the stream.</p>

<h3>Parameters</h3>

<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td valign=top width=100><code>ptr</code>&nbsp;</td>
<td valign=top><p>Pointer to the data that should be written to the stream.</p></td>
</tr>
<tr>
<td valign=top width=100><code>size</code>&nbsp;</td>
<td valign=top><p>Size of the data to write in bytes.</p></td>
</tr>
</table>

<p><a href="#">top</a></p>

</body></HTML>